<!DOCTYPE html>
<html>
<head>
    <title>未超期小区故障汇总</title>
		<#include "/header.html">
    <script src="${request.contextPath}/statics/plugins/ztree/jquery.ztree.core.js"></script>
    <script src="${request.contextPath}/statics/plugins/ztree/jquery.ztree.exhide.js"></script>
    <script src="${request.contextPath}/statics/plugins/ztree/fuzzysearch.js"></script>
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class="col-sm-1" style="padding-left:5px;padding-right:5px;">
                <select v-model="q.key" class="form-control" name="selQueryKey" id="selQueryKey">
                    <option value="">查询条件</option>
                    <option :value="list.code" v-for="(list,index) in searchKeyDictInfo" :key="index">{{ list.value }}
                    </option>
                </select>
            </div>
            <div class="col-sm-2" style="padding-left:5px;padding-right:0px;">
                <input type="text" class="form-control" v-model="q.value" @keyup.enter="query" placeholder="输入查询内容">
                <a id="inputClear" class="glyphicon glyphicon-remove btn form-control-feedback"
                   style="pointer-events: auto;"></a>
            </div>
            <a class="btn btn-primary" @click="query" style="margin-left:10px;"><i class="fa fa-search"></i>&nbsp;按条件查询</a>
            <a class="btn btn-primary" @click="outxls"><i class="fa fa-download"></i>&nbsp;导出显示数据</a>

			<#if shiro.hasPermission("water:errorreport:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;查看所选详情</a>

			</#if>

        <a class="btn btn-primary" @click="getzip" v-show="q.dept"><i class="fa fa-download"></i> 下载最近异常</a>
            <!--
			<#if shiro.hasPermission("water:errorreport:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("water:errorreport:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>-->
        </div>
        <div id="content" class="row-fluid">
            <div class="col-md-2 panel panel-default"
                 style="padding-left:0px;min-height:685px;max-height:calc(100vh - 70px);overflow-y: scroll;">
                <input type="text" id="treeSearchKey" value="" class="empty" placeholder="请输入关键字" style="margin-left: 5px; margin-top: 5px;"/>
                <ul id="deptTreeLeft" class="ztree"></ul>
            </div>
            <div class="col-md-10">
                <table id="jqGrid"></table>
                <div id="jqGridPager"></div>
            </div>
        </div>
    </div>
    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">区域名称</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="errorReport.areaName" readonly
                           placeholder="区域名称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">系统类型</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="errorReport.deviceType" readonly
                           placeholder="系统类型"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">项目经理</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="errorReport.debugerName" readonly
                           placeholder="项目经理"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">小区名称</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="errorReport.proName" readonly
                           placeholder="小区名称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">数据日期</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="errorReport.dataDate" readonly
                           placeholder="数据日期"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">户数</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="errorReport.deviceCount" readonly
                           placeholder="户数"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">正常户数</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="errorReport.deviceOk" readonly
                           placeholder="正常户数"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">修复户数</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="errorReport.deviceFixed" readonly
                           placeholder="修复户数"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">新增故障</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="errorReport.errorNew" readonly
                           placeholder="新增故障"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">故障户数</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="errorReport.errorStay" readonly
                           placeholder="故障户数"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">板故障</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="errorReport.errorBoard" readonly placeholder="板故障"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <!--<input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..."
                       @click="saveOrUpdate" value="确定"/>-->
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
    <div id="infoLayer" style="display: none;padding:10px;">
        <table id="jqGridErr"></table>
        <div id="jqGridPagerErr"></div>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/water/errorreport1.js?_${.now?long}"></script>
</body>
</html>